class CreateSettings < ActiveRecord::Migration
  def self.up
    create_table :settings do |t|
      t.string    :name
      t.float     :price_bw, :precision => 1, :scale => 2, :default => 0.10
      t.float     :price_color, :precision => 1, :scale => 2, :default => 0.50
    end
    
    Settings.create :name => "Domyślne ustawienia", :price_bw => 0.10, :price_color => 0.50
  end
  
  def self.down
    drop_table :settings
  end
end
